#!/usr/bin/env bash

if [[ "Linux" = $(uname) ]]; then
  sudo systemctl reload nginx;
else
  echo "Please make sure NGINX include default.d/*.conf; in server part, and work for port 80!";
  sudo brew services restart nginx;
fi

gradle clean war

docker stop {{ project }}_web_1
sudo mv build/libs/*.war /srv/docker/{{ project }}/web/
docker start {{ project }}_web_1
#rm /tmp/todo.sh

